package cn.edu.anan.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单controller
 *
 * @author ThinkPad
 * @version 1.0
 * @date 2021/7/31 20:56
 */
@RestController
@RequestMapping("order")
@Slf4j
public class OrderController {

    @Value("${server.port}")
    private String port;

    @RequestMapping("create")
    public String createOrder(){
        log.info("当前服务端口：{},收到创建订单请求",port);

        return "ok";
    }
}
